﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000383 RID: 899
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DBBPFLMIDLO : IMessage<DBBPFLMIDLO>, IMessage, IEquatable<DBBPFLMIDLO>, IDeepCloneable<DBBPFLMIDLO>, IBufferMessage
	{
		// Token: 0x17000B99 RID: 2969
		// (get) Token: 0x06002852 RID: 10322 RVA: 0x00070515 File Offset: 0x0006E715
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DBBPFLMIDLO> Parser
		{
			get
			{
				return DBBPFLMIDLO._parser;
			}
		}

		// Token: 0x17000B9A RID: 2970
		// (get) Token: 0x06002853 RID: 10323 RVA: 0x0007051C File Offset: 0x0006E71C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DBBPFLMIDLOReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000B9B RID: 2971
		// (get) Token: 0x06002854 RID: 10324 RVA: 0x0007052E File Offset: 0x0006E72E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DBBPFLMIDLO.Descriptor;
			}
		}

		// Token: 0x06002855 RID: 10325 RVA: 0x00070535 File Offset: 0x0006E735
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DBBPFLMIDLO()
		{
		}

		// Token: 0x06002856 RID: 10326 RVA: 0x0007053D File Offset: 0x0006E73D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DBBPFLMIDLO(DBBPFLMIDLO other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.avatarType_ = other.avatarType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002857 RID: 10327 RVA: 0x0007056E File Offset: 0x0006E76E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DBBPFLMIDLO Clone()
		{
			return new DBBPFLMIDLO(this);
		}

		// Token: 0x17000B9C RID: 2972
		// (get) Token: 0x06002858 RID: 10328 RVA: 0x00070576 File Offset: 0x0006E776
		// (set) Token: 0x06002859 RID: 10329 RVA: 0x0007057E File Offset: 0x0006E77E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x17000B9D RID: 2973
		// (get) Token: 0x0600285A RID: 10330 RVA: 0x00070587 File Offset: 0x0006E787
		// (set) Token: 0x0600285B RID: 10331 RVA: 0x0007058F File Offset: 0x0006E78F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x0600285C RID: 10332 RVA: 0x00070598 File Offset: 0x0006E798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DBBPFLMIDLO);
		}

		// Token: 0x0600285D RID: 10333 RVA: 0x000705A6 File Offset: 0x0006E7A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DBBPFLMIDLO other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.AvatarType == other.AvatarType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600285E RID: 10334 RVA: 0x000705E4 File Offset: 0x0006E7E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600285F RID: 10335 RVA: 0x00070642 File Offset: 0x0006E842
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002860 RID: 10336 RVA: 0x0007064A File Offset: 0x0006E84A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002861 RID: 10337 RVA: 0x00070654 File Offset: 0x0006E854
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(120);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002862 RID: 10338 RVA: 0x000706AC File Offset: 0x0006E8AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002863 RID: 10339 RVA: 0x00070704 File Offset: 0x0006E904
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DBBPFLMIDLO other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002864 RID: 10340 RVA: 0x00070754 File Offset: 0x0006E954
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002865 RID: 10341 RVA: 0x00070760 File Offset: 0x0006E960
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 120U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarType = (AvatarType)input.ReadEnum();
					}
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400100D RID: 4109
		private static readonly MessageParser<DBBPFLMIDLO> _parser = new MessageParser<DBBPFLMIDLO>(() => new DBBPFLMIDLO());

		// Token: 0x0400100E RID: 4110
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400100F RID: 4111
		public const int AvatarIdFieldNumber = 1;

		// Token: 0x04001010 RID: 4112
		private uint avatarId_;

		// Token: 0x04001011 RID: 4113
		public const int AvatarTypeFieldNumber = 15;

		// Token: 0x04001012 RID: 4114
		private AvatarType avatarType_;
	}
}
